package com.owc.common.exception;

import com.owc.common.enums.ExceptionEnum;

/**
 * @Author xiaom
 * @Date 2019/12/2 17:51
 * @Version 1.0.0
 * @Description <Exception caused by bad request.>
 **/
public class BadRequestException extends OWCException {

    public BadRequestException(String message) {
        super(ExceptionEnum.BAD_REQUEST_ERR.getCode(),message);
    }

    public BadRequestException(ExceptionEnum exceptionEnum){
        super(exceptionEnum.getCode(),exceptionEnum.getMessage());
    }

    public BadRequestException(String message, Throwable cause) {
        super(message, cause);
    }

    public BadRequestException() {

    }
}
